// @ts-nocheck
import { Controller } from 'egg';

const queryUserInfoReqRule = {
  username: {
    required: true,
    type: 'string'
  },
  password: {
    required: true,
    type: 'string'
  }
}

export default class UserController extends Controller {
  public async queryUserInfo() {
    const { ctx } = this;
    const res = ctx.validate(queryUserInfoReqRule, ctx.request.query);
    ctx.body = {
      message: "请求成功",
      userInfo: {
        username: "aaa",
        password: '1234567',
        email: "1234@163.com"
      }
    }
  }
}
